package com.guoxin.part4.chapter24;

import com.guoxin.part1.chapter8.BasicThreadPool;
import com.guoxin.part1.chapter8.ThreadPool;

/**
 * @author guoxin
 * @date 2019/9/2
 */
public class Operator {
    private final ThreadPool threadPool = new BasicThreadPool(2,6,4,1000);
    public void call(String buiness) {
        TaskHandler taskHandler = new TaskHandler(new Request(buiness));
//        new Thread(taskHandler).start();
        threadPool.execute(taskHandler);
    }
}
